package com.ddwl.shop.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.schema.bo.shop.QueryShopUserRecordBo;
import com.ddwl.shop.dao.mapper.ShopUserRecordMapper;
import com.ddwl.shop.dao.model.ShopUserRecord;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

/**
 * (ShopUserRecord)表数据库访问层
 * @author wenbin
 */
@Slf4j
@Repository
public class ShopUserRecordDao extends TkDao<ShopUserRecordMapper, ShopUserRecord> {

    public String queryRelateRecord(String userId) {
        return baseMapper.queryRelateRecord(userId);
    }

    public Integer queryConsumeCount(QueryShopUserRecordBo query) {
        return baseMapper.queryConsumeCount(query);
    }
}